Add get_type() functions for GskRenderNode subclasses
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 8 Apr 2020 14:34:11 +0000 (15:34 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 8 Apr 2020 15:07:04 +0000 (16:07 +0100)
commite0323fcdc2043206ae84376ac2c9b11382f60bf7
tree7089b16d63ff4806dfb4b52ec22b4b593d7a91fa
parentcd5cded430c37fcb57d0ecc03f8fdf2fdbe12c54
Add get_type() functions for GskRenderNode subclasses

The introspection scanner tries to match a type name with a get_type()
function, in order to correctly identify a type as a class.

If the function is not available, we have two choices:

 - add some special case inside the introspection scanner, similar to
   how GParamSpec subclasses are handled in GObject
 - add a simple get_type() function

The latter is the simplest approach, and we don't need to change that
much, since we still register all render nodes at once.
gsk/gskrendernode.h
gsk/gskrendernodeimpl.c
gsk/gskrendernodeprivate.h